import { defineStore } from 'pinia'
interface list {
  id: number
  name: string
  path: string
}
interface MenusState {
  list: list[]
  active: number
  isShow: boolean
}
export const useMenusStore = defineStore('menus', {
  state: (): MenusState => ({
    list: [
      { id: 3, name: '数据面板', path: '/' },
      { id: 2, name: '订单管理', path: '/order' },
      { id: 4, name: '信息管理', path: '/info' },
      { id: 5, name: '文件上传', path: '/upload' }
    ],
    active: 0,
    isShow: false
  }),
  persist: true
})
